package models

//商铺
type Story struct {
	Id          int    `gorm:"primary_key json:"id" form:"id"`
	Name        string `json:"name" form:"name"`                   //商铺名称
	Introduce   string `json:"introduce" form:"introduce"`         //介绍
	Image       string `json:"image" form:"image"`                 //图片
	UserOwnerId int    `json:"user_owner_id" form:"user_owner_id"` //所有者id
	CreateTime  string `json:"create_time" form:"create_time"`     //创建时间
	Address     string `json:"address" form:"address"`
	Phone       string    `json:"phone" form:"phone"`
}

//商铺资质图片
type Qualification struct {
	Id               int    `gorm:"primary_key json:"id" form:"id"`
	QualificationUrl string `json:"qualification_url" form:"qualification_url"` //资质图片地址
	StoryId          int    `json:"story_id" form:"story_id"`                   //所属商铺id
}

func (Story) TableName() string {
	return "story"
}

func (Qualification) TableName() string {
	return "qualification"
}
